package com.dartsstats;

import com.dartsstats.R;
import com.dartsstats.R.layout;
import com.dartsstats.R.menu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	public final static String EXTRA_MESSAGE = "com.dartsstats.MESSAGE";
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    public void startNewMatch(View view) {
    	Intent intent = new Intent(this, SetMatchSettingsActivity.class);
    	startActivity(intent);
    }
    
    public void editTeams(View view) {
    	Intent intent = new Intent(this, EditTeamsActivity.class);
    	startActivity(intent);
    }
    
    public void viewStats(View view) {
    	Intent intent = new Intent(this, ViewStatsActivity.class);
    	startActivity(intent);
    }
    
}
